package com.example.thekul.myapplication;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class MaintwoActivity extends AppCompatActivity {

    private TextView dadad;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_maintwo);

        dadad = (TextView)findViewById(R.id.dadad);

        Intent intent = getIntent();
        dadad.setText(intent.getStringExtra("name").toString());

    }
}
